#include "usb_device.h"
#include "usbd_core.h"
#include "usbd_desc.h"
#include "usbd_class.h"



USBD_HandleTypeDef hUsbDeviceHS1;

void MX_USB_DEVICE_Init(void){

  if (USBD_Init(&hUsbDeviceHS1, &USB1_Desc, 0) != USBD_OK)
  {
    Error_Handler();
  }
  if (USBD_RegisterClass(&hUsbDeviceHS1, &USBD_Class_Driver) != USBD_OK)
  {
    Error_Handler();
  }
  if (USBD_Start(&hUsbDeviceHS1) != USBD_OK)
  {
    Error_Handler();
  }


}

